<!-- home -->
<template>
  <div>
    <h1>{{ UserStore.username }}</h1>
    <img
      :src="UserStore.avatar"
      style="width: 70px; height: 70px; margin: 0px 10px"
    />
  </div>
</template>

<script setup lang="ts">
import { onMounted } from 'vue'
import useUserStore from '../../store/modules/user'
let UserStore = useUserStore()
onMounted(() => {
  UserStore.userinfo()
})
</script>

<style scoped></style>
